package com.qishao.controller;

import com.qishao.service.impl.EduSubjectServiceImpl;
import com.qishao.service_base.reponse.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Title：TestHandlerController.java
 * @Author：XUSHAOQI
 * @DATE：2022/2/14
 * 测试分布式任务调度平台 XXL_JOB
 */
@RestController
@RequestMapping("/testHandlerController")
public class TestHandlerController {
    private static final Logger LOG = LoggerFactory.getLogger(TestHandlerController.class);

    @PostMapping("/testHandler")
    public Response testHandler(@RequestBody Map requestMap){

        requestMap.put("message","分布式任务调度 XXL_JOB feign接口调用成功！");
        LOG.info("XXL_JOB feign接口远程调用："+requestMap);
        return Response.ok(requestMap);
    }

}
